﻿using System;
using System.Collections.Generic;
using System.Text;

namespace dianyingyuan
{
    class fictor
    {
        public static Ticket haha(string type, string num, Movie name, int jiage, string time, string zeng, int ze) 
        {
            Ticket tic = null;
            switch(type)
            {
                case "pu":
                     tic = new Ticket(num, name, jiage, time);
                    break;
                case "zeng":
                     tic = new ZengTicket(num, name, jiage, time, zeng);
                    break;
                case "stu":
                     tic = new StudentTicket(num, name, jiage, time,ze);
                    break;

            }
            return tic;
        }
    }
}
